From 4d36a0bf352cc69e85a065e49119a7f6804bc9e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Fri, 19 Jan 2018 15:15:09 +0100 Subject: [PATCH] entrycompletion: Realize toplevel before attempting a grab Otherwise, gtk_widget_get_window returns NULL and we can't successfully perform a grab via the later gdk_set_grab call. This fixes the entry completion in the file chooser not working. --- gtk/gtkentrycompletion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index ae3f895b42..c80f8b0061 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -1592,6 +1592,7 @@ gtk_entry_completion_popup (GtkEntryCompletion *completion) gtk_window_set_display (GTK_WINDOW (completion->priv->popup_window), gtk_widget_get_display (completion->priv->entry)); + gtk_widget_realize (completion->priv->popup_window); if (completion->priv->device) { -- 2.30.2